#ifndef FTAPP_H
#define FTAPP_H

#include <QObject>
#include "ftgridmodel.h"
#include "ftlistmodel.h"

/* 接口类，继承自 QObject，新建该类时务必选上 Q_OBJECT */
class FtApp : public QObject
{
    Q_OBJECT
    /* 将模型类以指针形式作为接口类的属性  */
    Q_PROPERTY(FtGridModel *ftGridModel READ ftGridModel CONSTANT);
    Q_PROPERTY(FtListModel *ftListModel READ ftListModel CONSTANT);

public:
    explicit FtApp(QObject *parent = nullptr);

    /* 读函数 */
    FtGridModel *ftGridModel() const;
    FtListModel *ftListModel() const;

private:
    /* 模型类指针 */
    FtGridModel *m_ftGridModel;
    FtListModel *m_ftListModel;

signals:

};

#endif // FTAPP_H
